<?php
	require 'common.php';
	
	//如果网站首页面模板被缓存，就直接读取缓存文件，不会执行以下的程序逻辑
	if(!$smarty->isCached(APP_STYLE."/index.html")) {
		$smarty->assign("mission",$mission->getAllMission(1,5));
		$smarty->assign("product",$product->getAllProduct(1,5));
		$smarty->assign("verify",$verify->getAllVerify(1,5));	
	}
	//加载并输出模板index.html
	$smarty->display(APP_STYLE."/index.html");
?>